package com.pipi.sso.dao.mapper;

import com.pipi.sso.dao.model.MenuDO;
import com.pipi.sso.dao.query.MenuQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for Menu.
 */
 @Mapper
 @Repository
public interface MenuMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(MenuQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(MenuQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(MenuDO record);

    /**
     * insert selective.
     */
    int insertSelective(MenuDO record);

    /**
     * select by query condition.
     */
    List<MenuDO> selectByQuery(MenuQuery query);

    /**
     * select by primary key.
     */
    MenuDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") MenuDO record, @Param("query") MenuQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") MenuDO record, @Param("query") MenuQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(MenuDO record);
}